< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03030301.xhp

(section: date) (bookmark: bm_id3156027)
Date statement

Date ステートメント

Date Statement [Runtime]
Date ステートメント [実行時](hd_id3156027.1)

Returns the current system date as a string, or resets the date. The date format depends on your local system settings.
システムの現在の日付を文字列として取得するか、日付のリセットを行います。日付の書式は、ローカルシステムの設定に依存します。(par_id3147291.2)

(/section: date)

Syntax:
構文:(hd_id3148686.3)

Date ; Date = Text As String
Date ; Date = Text As String(par_id3146794.4)

Parameters:
パラメータ:(hd_id3154347.5)

Text: Only required in order to reset the system date. In this case, the string expression must correspond to the date format defined in your local settings.
Text: システムの日付設定をリセットする場合にのみ指定。この場合、指定する文字列の表式は、ローカルシステムの日付書式に準じておく必要があります。(par_id3145069.6)

Example:
例:(hd_id3150793.7)

Sub ExampleDate
Sub ExampleDate(par_id3151212.8)

msgbox "The date is " & Date
msgbox "The date is " & Date(par_id3156424.9)

end sub
end sub(par_id3145174.10)


< Prev / Next >